<?php

namespace App\Models\Shop;

use App\Models\BaseModel;

class ShopGoodsTrusteeshipModel extends BaseModel
{
    protected $table = 'shop_goods_trusteeship';

    protected $primaryKey = 'id';

    public $dateFormat = 'U';

    public $dates = [
        'created_at',
        'updated_at',
        'returned_at',
    ];

    public function goods()
    {
        return $this->belongsTo('App\Models\Shop\ShopGoodsModel','goods_id','goods_id');
    }

    public function user()
    {
        return $this->belongsTo('DC\UserCenter\Models\UserBaseModel','user_id','member_id');
    }
}
